package redteam.grabthegreen;

import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.widget.Button;

public class GrabTheGreen extends Activity {
    /** Called when the activity is first created. */
	/*
    @Override
    public void onCreate(Bundle icicle) {
        super.onCreate(icicle);
        setContentView(R.layout.main);
        Button b = (Button)findViewById(R.id.click);
        b.setText("Run GrabTheGreen");
        b.setOnClickListener(new Button.OnClickListener() {
        	public void onClick(View v) {
        		startSubActivity(new Intent(GrabTheGreen.this, MainWindow.class), 0);
        	}
        });
    }
    */
	@Override
    public void onCreate(Bundle icicle) {
		super.onCreate(icicle);
		setContentView(R.layout.mainwindow);
		Button createGameButton = (Button)findViewById(R.id.create);
		createGameButton.setText("Create Game");
		createGameButton.setOnClickListener(new Button.OnClickListener() {
        	public void onClick(View v) {
        		startSubActivity(new Intent(GrabTheGreen.this, SetupWindow.class), 0);
        	}
        });
		Button quitButton = (Button)findViewById(R.id.quit);
		quitButton.setText("Quit");
		quitButton.setOnClickListener(new Button.OnClickListener() {
			public void onClick(View v) {
				//quit the fuckin game
				finish();
			}
		});
	}
}